import {defineStore} from "pinia";


const useLangStore = defineStore('language', {
    state: {
        lang: localStorage.getItem('lang') || 'en'
    },
    actions: {
        setLang(lang) {
            this.lang = lang
        }
    }
})

export default useLangStore